package com.hanthink.system.domain.manhour;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hanthink.common.annotation.Excel;
import com.hanthink.common.core.domain.BaseEntity;

/**
 * 设备物料理论用工数对象 MachineTheoryWorkers
 * 
 * @author hanthink
 * @date 2021-11-22
 */
public class MachineTheoryWorkers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备机台代码 */
    @Excel(name = "机台代码")
    private String machineid;

    /** 物料代码 */
    @Excel(name = "物料代码")
    private String materialid;

    /** 物料描述 */
    @Excel(name = "物料描述")
    private String materialname;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String machinename;

    /** 车间 */
    @Excel(name = "车间")
    private String workshop;

    /** 公司代码 */
    @Excel(name = "公司代码")
    private String companyid;

    /** 公司名称 */
    @Excel(name = "公司名称")
    private String companyname;

    /** 技术员人数 */
    @Excel(name = "技术员人数")
    private Float techworks;

    /** 操作工人数 */
    @Excel(name = "操作工人数")
    private Float operationworks;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdatetime;

    /** 创建者 */
//    @Excel(name = "创建者")
    private String creator;

    /** 修改日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "修改日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifydatetime;

    /** 修改者 */
//    @Excel(name = "修改者")
    private String modifytor;

    /** $column.columnComment */
//    @Excel(name = "实体ID")
    private Long id;

    public void setMachineid(String machineid) 
    {
        this.machineid = machineid;
    }

    public String getMachineid() 
    {
        return machineid;
    }
    public void setMaterialid(String materialid) 
    {
        this.materialid = materialid;
    }

    public String getMaterialid() 
    {
        return materialid;
    }
    public void setMaterialname(String materialname) 
    {
        this.materialname = materialname;
    }

    public String getMaterialname() 
    {
        return materialname;
    }
    public void setMachinename(String machinename) 
    {
        this.machinename = machinename;
    }

    public String getMachinename() 
    {
        return machinename;
    }
    public void setWorkshop(String workshop) 
    {
        this.workshop = workshop;
    }

    public String getWorkshop() 
    {
        return workshop;
    }
    public void setCompanyid(String companyid) 
    {
        this.companyid = companyid;
    }

    public String getCompanyid() 
    {
        return companyid;
    }
    public void setCompanyname(String companyname) 
    {
        this.companyname = companyname;
    }

    public String getCompanyname() 
    {
        return companyname;
    }
    public void setTechworks(float techworks)
    {
        this.techworks = techworks;
    }

    public Float getTechworks()
    {
        return techworks;
    }
    public void setOperationworks(Float operationworks)
    {
        this.operationworks = operationworks;
    }

    public Float getOperationworks()
    {
        return operationworks;
    }
    public void setCreatedatetime(Date createdatetime) 
    {
        this.createdatetime = createdatetime;
    }

    public Date getCreatedatetime() 
    {
        return createdatetime;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setModifydatetime(Date modifydatetime) 
    {
        this.modifydatetime = modifydatetime;
    }

    public Date getModifydatetime() 
    {
        return modifydatetime;
    }
    public void setModifytor(String modifytor) 
    {
        this.modifytor = modifytor;
    }

    public String getModifytor() 
    {
        return modifytor;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("machineid", getMachineid())
            .append("materialid", getMaterialid())
            .append("materialname", getMaterialname())
            .append("machinename", getMachinename())
            .append("workshop", getWorkshop())
            .append("companyid", getCompanyid())
            .append("companyname", getCompanyname())
            .append("techworks", getTechworks())
            .append("operationworks", getOperationworks())
            .append("createdatetime", getCreatedatetime())
            .append("creator", getCreator())
            .append("modifydatetime", getModifydatetime())
            .append("modifytor", getModifytor())
            .append("id", getId())
            .toString();
    }
}
